<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script src="js/Jquery3.6.js"></script>
    <script>
        class Divcreate{
            static getInstance(){
                if(this.instance==null){
                    this.instance=new Divcreate()
                }
                return this.instance
            }
            constructor(divText){
                this.divElem=document.createElement("div")
            }
            init(divText){
                this.divElem.innerText=divText
                document.body.appendChild(this.divElem)
            }
        }
        let s1=Divcreate.getInstance()
        s1.init("hello")
        let s2=Divcreate.getInstance()
        s2.init("wrold")

    </script>
</body>
</html>